typescript-ts-mode: align ternary-chain branches (bug#78187)
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>
Thu, 1 May 2025 13:28:29 +0000 (20:28 +0700)
committerYuan Fu <casouri@gmail.com>
Fri, 16 May 2025 03:09:26 +0000 (20:09 -0700)
commitc80fbe3f2355ab7182dcba98ed9717f0231aab00
tree423b059182e051827a6cc293adaa409fb8e8b616
parent16bfbc6fe312526cec8a331a759615ffe3eb4523
typescript-ts-mode: align ternary-chain branches (bug#78187)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Make sure each new ternary
branch is aligned with the previous one.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Chained ternary expressions): New test.
lisp/progmodes/typescript-ts-mode.el
test/lisp/progmodes/typescript-ts-mode-resources/indent.erts